package com.kingyea.app.market.userappmenu.service;

import com.kingyea.app.market.userappmenu.bean.UserAppMenu;

import java.util.List;
import java.util.Map;

/**
 * @author hx
 * @version v1.0.0
 * @description UserAppMenu 接口
 * @date Created in 2018-04-24 11:42:24
 */
public interface UserAppMenuService {

    /**
     * 通过ID查找对象
     *
     * @param id
     * @return
     */
    UserAppMenu getById(Integer id) throws Exception;

    /**
     * 列表
     *
     * @param userAppMenu
     * @return
     */
    List<UserAppMenu> list(UserAppMenu userAppMenu) throws Exception;

    List<UserAppMenu> myApp(String userId) throws Exception;

    /**
     * 删除
     *
     * @param id
     * @return
     */
    int deleteById(Integer id) throws Exception;

    /**
     * 添加
     *
     * @param userAppMenu
     * @return
     */
    UserAppMenu save(UserAppMenu userAppMenu) throws Exception;

    /**
     * 更新
     *
     * @param userAppMenu
     * @return
     */
    UserAppMenu update(UserAppMenu userAppMenu) throws Exception;

    List<Map> getDesktop(String userId) throws Exception;

    List<Map> getRegion(String userId) throws Exception;


    Object deletesByAppCode(String appCode) throws Exception;
}
